package com.star.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.star.dao.KeyNewsDao;
import com.star.model.KeyNewsModel;
import com.star.service.KeyNewsService;

@Service
public class KeyNewsServiceImpl implements KeyNewsService{

	@Autowired
	private KeyNewsDao KeyNewsDao;
	

	@Override
	public List<KeyNewsModel> queryContent(String content) {
		
		return KeyNewsDao.queryContent(content);
	}

	@Override
	public KeyNewsModel queryById(Integer id) {
		// TODO Auto-generated method stub
		return KeyNewsDao.queryById(id);
	}

}
